package com.clz.hyperit.dao.impl;

import org.springframework.stereotype.Repository;

import com.clz.hyperit.dao.PositionDao;
import com.clz.hyperit.entity.Position;
@Repository("positionDao")
public class PositionDaoImpl extends BaseDaoImpl<Position> implements PositionDao {

	public Position getByName(String name) {
		String hql = "from Position where name = :name";
		return  (Position)getCurrentSession().createQuery(hql)
			.setString("name", name).uniqueResult();
	}
}
